package cn.zt.ztzx.service.impl;

import cn.zt.utils.Result;
import cn.zt.ztzx.domain.dto.DeviceTypeDto;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.zt.ztzx.domain.DeviceType;
import cn.zt.ztzx.service.DeviceTypeService;
import cn.zt.ztzx.mapper.DeviceTypeMapper;
import org.springframework.stereotype.Service;

/**
* @author 不.凌
* @description 针对表【t_device_type】的数据库操作Service实现
* @createDate 2024-10-17 09:55:23
*/
@Service
public class DeviceTypeServiceImpl extends ServiceImpl<DeviceTypeMapper, DeviceType>
    implements DeviceTypeService{

    @Override
    public Result deviceTypeListPage(DeviceTypeDto deviceTypeDto) {
        Page<DeviceType> page=new Page<>(deviceTypeDto.getPageNum(),deviceTypeDto.getPageSize());
        LambdaQueryWrapper<DeviceType> wrapper=new LambdaQueryWrapper<>();
        this.page(page,wrapper);
        return Result.success(page);
    }
}




